package com.jt.service2;

public class Proxy implements Subject {

    public void buyMac() {
        RealSubject realSubject = new RealSubject();

        realSubject.buyMac();

        this.WrapMac();
    }

    private void WrapMac() {
        System.out.println("用盒子包装好Mac");
    }
}
